package org.lewis.common.domain;

import java.util.Date;

/**
 * 短信发送任务
 * 
 * @author lewis
 * 
 */
public class EmailTask extends BaseEntity {

	private static final long serialVersionUID = 1L;

	private String type;
	private String content;
	private String status;//init,send,failed
	private Date createTime;
	private Date sendTime;
	private String subject;
	private String receiver;
	private Date planSendTime;
	private String sendType;//immediately,plan
	
	public EmailTask(){
		this.status=EmailTask.STATUS.init.name();
		this.createTime=new Date();
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public Date getPlanSendTime() {
		return planSendTime;
	}

	public void setPlanSendTime(Date planSendTime) {
		this.planSendTime = planSendTime;
	}

	public String getSendType() {
		return sendType;
	}

	public void setSendType(String sendType) {
		this.sendType = sendType;
	}
	public enum TYPE{
		account
	}
	
	public enum STATUS{
		init,send,failed
	}
	
	public enum SENDTYPE{
		immediately,plan
	}

}
